﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using db = DataContext;

namespace WebApplication
{
	public partial class Company : System.Web.UI.Page
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			using (db.DbDataContext context = new db.DbDataContext())
			{
				db.Config config = context.Config.SingleOrDefault(x => x.Name == "公司简介");
				if (config != default(db.Config))
				{
					content.Text = config.Value;
				}
			}
		}
	}
}